<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>rrweb-player-demo</title>
    <link rel="stylesheet" href="./style.css" />
</head>

<body>
    <div id="rrwebplayer"></div>
    <script src="./bundle.js"></script>
    <script>
        fetch('http://localhost:8076/getFile', {
                method: 'POST'
            })
            .then(response => response.json())
            .then(data => {
                new rrwebPlayer({
                    target: document.getElementById('rrwebplayer'),
                    data: {
                        events: data.data,
                        skipInactive: true,
                        showDebug: true,
                        showWarning: true,
                        autoPlay: true
                    }
                })
            })
    </script>
</body>

</html>